<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Addition</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/fstratManager.js" type="text/javascript"></script>
<script src="js/fstratUtils.js" type="text/javascript"></script>
</head>
<body>
	<%@ page import = "com.fstrat.frontend.webserviceclient.*" %>
	<% AdditionClient additionClient = new AdditionClient(); %>
	Summe ohne Parameter: <%= additionClient.getSumme() %>
    <br><br>
    Summe mit URL-Parameter: <%= additionClient.getSumme(3,7) %>
    <br><br>
    JSON mit URL-Parameter: <%= additionClient.getJSON(4,7,4) %>
    <br><br>
    JSON mit JSON-Parameter: <%= additionClient.getTotalJSON(5,10,15) %>
    
    <div style="margin: 50px;border: 1px solid #001299;padding: 10px;width:550px;font-family: arial">
    	<table>
    		<thead>
    			<tr>
    				<th>Zahl 1</th>
    				<th>Zahl 2</th>
    				<th>Zahl 3</th>
    			</tr>
    			<tr>
    				<td><input type="text" name="txtZahl1" id="txtZahl1" value="15"/></td>
    				<td><input type="text" name="txtZahl2" id="txtZahl2" value="15"/></td>
    				<td><input type="text" name="txtZahl3" id="txtZahl3" value="15"/></td>
    			</tr>
    			<tr>
    				<td colspan="3" align="right"><input type="button" name="btnOk" id="btnOk" value="Ergebnis abrufen" onclick="getAdditionErgebnis()"/></td>
    			</tr>
    		</thead>
    	</table>
    	
    	<span id="spnErgb" style="color:blue;text-decoration: underline;"></span>
    	<span id="spnLoading"></span>
    	<span id="spnError"></span>
    </div>
</body>
</html>